let initState = {
    dataList: [],
    hotProd: [],
    bagDress: [],
    parts: [],
    breathing: [],
    phone: [],
}

export const shouyeReducer = (state = initState, action) => {
    let newState = {...state}
    switch (action.type) {
        case 'GETDATE':
            newState.dataList = action.dataList
            return newState
        case 'PRODID':
            newState.hotProd = action.hotProd
            newState.bagDress = action.bagDress
            newState.parts = action.parts
            newState.breathing = action.breathing
            newState.phone = action.phone
            return newState
        default:
            return state
    }
}